<link href="assets/link/bootstrap-datetimepicker.min.css" rel="stylesheet">

<!--<script src="js/documdocumentProj.jst.js"></script>-->
<section id="container">
	<!--main content start-->
	<section id="main-content">

		<section class="wrapper">
			<!--state overview start-->
			<div class="row">
				<div class="col-lg-12">


					<section class="panel hidefile" style="display: none;">
						<header class="panel-heading">
							文件上传
						</header>
						<div class="panel-body">

							<div class="form-group customerForm">
								<label class="col-sm-2 control-label">文件类型</label>
								<div class="col-sm-10">
									<select certus-required class="form-control" ng-model="bxType">
										<option ng-repeat="x in bxSelect" value="{{x.code}}">
											{{x.name}}
										</option>
									</select>
								</div>
							</div>
							<div class="form-group customerForm">
								<label class="col-sm-2 control-label">文件上传</label>
								<div class="col-sm-10">
									<input type="file" class="form-control input-file" id="fileUploadId">
								</div>
							</div>
							<p class="default-buttons">
								<a href="javascript:void(0);" class="button-back btn btn-info" onclick="hidefile();">取消</a>
								<a href="javascript:void(0);" class="button-next  btn btn-info" ng-click="bxExcelImport();">确认</a>
							</p>
						</div>
					</section>


					<section class="panel">
						<div class="panel-body" style="padding-bottom:0;">
							<div class="row">
								<div class="col-lg-3">
									<div class="input-group m-bot15">
										<span class="input-group-addon">开始日期</span>
										<input type="text" ng-model="search.startTime" id="startTimeIdss" value="" class="form-control">
									</div>
								</div>
								<div class="col-lg-3">
									<div class="input-group m-bot15">
										<span class="input-group-addon">结束日期</span>
										<input type="text" ng-model="search.endTime" id="endTimeIdss" value="" class="form-control">
									</div>
								</div>
								<div class="col-lg-3">
									<div class="input-group m-bot15">
										<span class="input-group-addon">人员姓名</span>
										<input type="text" ng-model="search.userName" value="" class="form-control" />
									</div>
								</div>
								<div class="col-lg-3">
									<button class="btn btn-info pull-left searchs" ng-click="searchCP()"
										style="margin-bottom:15px;">搜索</button>
								</div>
							</div>
						</div>
					</section>


					<!-- <div class="view-header">
						<div class="view-search">
							<label class="pull-left">开始日期：</label>
							<input ng-model="search.startTime" id="startTimeIdss" class="form-control pull-left">
							<label class="pull-left">结束日期：</label>
							<input type="text" value="" class="form-control pull-left" ng-model="search.endTime" id="endTimeIdss">
							<label class="pull-left">人员姓名：</label>
							<input type="text" ng-model="search.userName" class="form-control pull-left">
							<a href="javascript:void(0);" class="btn btn-info pull-left searchs" ng-click="searchCP()">搜索</a>
						</div>
					</div> -->



					<!--    <div class="view-header">
                        <div class="view-search">
                            <div class="pull-left">
                                <span>开始时间：</span>
                                <input type="text" >
                            </div>

                            <div class="pull-left">
                                <span>结束时间：</span>
                                <input type="text" >
                            </div>

                            <div class="pull-left">

                            </div>

                            <div class="pull-left">
                                <label class="label label-primary" ng-click="searchCP()">搜索</label>
                            </div>
                        </div>
                    </div>-->


					<section class="panel">
						<header class="panel-heading t-pbox">
							<div class="pull-left h-htitle">
								邮件消息
							</div>
						</header>
						<div class="panel-body">
							<!--<div class="mail-option">-->
							<!--<div class="btn-group pull-left">-->
							<!--<label>类型：</label>-->
							<!--</div>-->
							<!--<div class="btn-group pull-left">-->
							<!--<select ng-model="docuSearcp.first" class="form-control" ng-change="firstChange(docuSearcp.first)"-->
							<!--ng-disabled="true">-->
							<!--<option ng-repeat="x in cpSelectFirst" value="{{x.fileCategoriesCode}}">-->
							<!--{{x.fileCategoriesName}}-->
							<!--</option>-->
							<!--</select>-->
							<!--</div>-->
							<!--<div class="btn-group pull-left">-->

							<!--<select ng-model="docuSearcp.second" class="form-control w-btn10">-->
							<!--<option ng-repeat="x in cpSelectSecond" value="{{x.fileClassCode}}">-->
							<!--{{x.fileClassName}}-->
							<!--</option>-->
							<!--</select>-->
							<!--</div>-->
							<!--<div class="btn-group pull-left">-->
							<!--<label>产品名：</label>-->
							<!--</div>-->
							<!--<div class="btn-group pull-left">-->
							<!--<input type="text" ng-model="docuSearcp.name" class="form-control">-->
							<!--</div>-->
							<!--<div class="btn-group pull-left">-->
							<!--<button class="btn btn-info" ng-click="searchCP()">搜索</button>-->
							<!--</div>-->
							<!--</div>-->
							<div id="mailDataId" class="dlshouwen-grid-container"></div>
							<div id="mailDataController" class="dlshouwen-grid-toolbar-container"></div>
						</div>
					</section>
				</div>
			</div>
			<!--state overview end-->
		</section>
	</section>
</section>

<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script>
	var $$scope;

	$("#startTimeIdss").datetimepicker({
		format: 'YYYY-MM-DD',
		locale: moment.locale('zh-cn')
	}).on('dp.change', function (e) {
		var result = new moment(e.date).format('YYYY-MM-DD');
		if (result && !angular.isUndefined(result)) {
			$$scope.search.startTime = result;
		}
	});

	$("#endTimeIdss").datetimepicker({
		format: 'YYYY-MM-DD',
		locale: moment.locale('zh-cn')
	}).on('dp.change', function (e) {
		var result = new moment(e.date).format('YYYY-MM-DD');
		if (result && !angular.isUndefined(result)) {
			$$scope.search.endTime = result;
		}
	});
</script>